<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下前台</title>
    <link rel="icon" href="/zwtx/public/images/tx.ico" type="image/x-icon" style="width: 50px;height: 50px"/>
    <include file="Public/head"/>




    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin">
<include file="Public/pheader"/>

<div id="wrap" style="margin-bottom: 60px">
    <div class="container-fluid">

        <div class="col-md-10 col-md-offset-1 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="bg-white" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">修改个人信息</p>
            </h2>
            <hr>
        </div>

        <div class="col-md-12" style="">
            <div class="col-md-4" style=""></div>
            <div class="col-md-4" style=" border: solid 1px #dce4e5;border-radius: 5%">
                <volist name="list" id="vo">
                <form  method="post"  class="form-horizontal" action="{:U('UserInfo/reset')}?uid={$vo['uid']}"  enctype="multipart/form-data" >
                    <table class="table"  style="width: 100%"   >
                        <br><br>
                        <input type="hidden" name="uid" value="{$vo.uid}">
                        <tr>
                            <img src="__PUBLIC__/images/pic/{$vo.pic}" style="margin-left: 46%;border-radius:50% ; width:50px;height: 50px;" alt="空">
                            <h3 style="text-align: center;margin-top: 2%">{$vo['username']}</h3>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 20%" > 用户名:</td>
                            <td style="padding-right: 20%"> <input class="form-control" placeholder="{$vo['username']}" value="{$vo['username']}" type="text" name="username" id="username" ></td>

                        </tr>
                        <tr>
                            <td style="text-align: left;padding-left: 20%"> 性别:</td>
                            <td style="padding-right: 20%"><if condition="($vo.sex eq 0)">男<else/>女</if></td>
                        </tr>
                        <tr>
                            <td style="text-align: left;padding-left: 20%"> 生日:</td>
                            <td style="padding-right:20%" > <input class="form-control" placeholder="{$vo['birthday']}" value="{$vo['birthday']}" type="date" name="birthday" id="birthday" ></td>

                        </tr>
                        <tr>
                            <td style="text-align: left;padding-left: 20%"> qq:</td>
                            <td style="padding-right: 20%" ><input class="form-control" placeholder="{$vo['qq']}" value="{$vo['qq']}" type="text" name="qq" id="qq" ></td>

                        </tr>
                        <tr>
                            <td style="text-align: left;padding-left: 20%"> 联系电话:</td>
                            <td style="padding-right: 20%" ><input class="form-control" placeholder="{$vo['tel']}" pattern="[0-9]{11}" value="{$vo['tel']}" type="text" name="tel" id="tel" ></td>

                        </tr>
                        <tr>
                            <td style="text-align: left;padding-left: 20%"> 自我介绍:</td>
                            <td style="padding-right: 20%" >
                                <textarea class="form-control" rows="3" placeholder="{$vo['intro']}" value="{$vo['intro']}" type="text" name="intro" id="intro">{$vo['intro']}</textarea>
                            </td>

                        </tr>
                        <tr>
                            <td style="text-align: left;padding-left: 20%"> 头像:</td>
                            <td style="padding-right: 20%" >
                                <!--<input class="form-control" placeholder="{$vo['pic']}" type="file" name="pic" id="pic" required>-->
                                <div class="row" style="margin-top: 2%">
                                    <div class=" col-md-6 col-md-offset-2">
                                        <div class="fileupload fileupload-new" data-provides="fileupload" style=""><input type="hidden" value="" name="pic" >
                                            <div class="fileupload-new img-thumbnail"
                                                 style="width: 110px; height: 110px;background-color:#5f5f5f">
                                                <img src="">
                                            </div>
                                            <div class="fileupload-preview fileupload-exists img-thumbnail"
                                                 style="width: 110px; max-height: 110px;"></div>


                    <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span><input type="file" name="pic">
                   </span>
                    <span style="float: right"><a class="btn btn-default fileupload-exists" data-dismiss="fileupload" href="#">撤销</a></span>
                                        </div>
                                    </div>
                                </div>
                            </td>

                        </tr>
                        <tr style="height: 120px;">
                            <div> <td colspan="2" style="padding-left: 25%;padding-right:25% " >
                                <input class="btn btn-block btn-info "  type="submit" value="修改">
                                <a href="{:U('Personal/index')}" >
                                    <button type="button" class="btn btn-success" style="width: 100%">返回</button>
                                </a>
                            </td></div>
                        </tr>
               </table>
                </form>
                    </volist>
            </div>

            <div class="col-md-4" style=""></div>

        </div>
    </div>

</div>

</body>
</html>
